package routers

import (
	"books_db/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/book/create", &controllers.BookController{}, "POST:Create;OPTIONS:Create")
	beego.Router("/book/list", &controllers.BookController{}, "GET:List;OPTIONS:List")
	beego.Router("/book/del", &controllers.BookController{}, "POST:Del;OPTIONS:Del")
}
